<!DOCTYPE html>
<html>
<head>
    <title></title>
		<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
			<#if shiro.hasPermission("sys:sysreturngoods:save")>
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			</#if>
			<#if shiro.hasPermission("sys:sysreturngoods:update")>
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			</#if>
			<#if shiro.hasPermission("sys:sysreturngoods:delete")>
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			</#if>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
														                    <div class="form-group">
                        <div class="col-sm-2 control-label">商品订单</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="sysReturnGoods.orderId" placeholder="商品订单"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">退货订单</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="sysReturnGoods.returnId" placeholder="退货订单"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">退货数量</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="sysReturnGoods.amount" placeholder="退货数量"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">退货金额</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="sysReturnGoods.money" placeholder="退货金额"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">退货订单创建时间</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="sysReturnGoods.creationTime" placeholder="退货订单创建时间"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">订单状态：1同意，2驳回，3申请中，4卖家同意，5买家发货，6卖家同意退款,7完成，8卖家拒绝退款，9用户取消</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="sysReturnGoods.state" placeholder="订单状态：1同意，2驳回，3申请中，4卖家同意，5买家发货，6卖家同意退款,7完成，8卖家拒绝退款，9用户取消"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">是否退款：1已退款，2未退款</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="sysReturnGoods.refundable" placeholder="是否退款：1已退款，2未退款"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">所属门店id</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="sysReturnGoods.storeId" placeholder="所属门店id"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">所属商户id</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="sysReturnGoods.merchantId" placeholder="所属商户id"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">门店名称</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="sysReturnGoods.storeName" placeholder="门店名称"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">商户名称</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="sysReturnGoods.merchantName" placeholder="商户名称"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">订单类型：1门店，2商户</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="sysReturnGoods.type" placeholder="订单类型：1门店，2商户"/>
                        </div>
                    </div>
							            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" id="btnSaveOrUpdate" data-loading-text="保存中..." @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>

<script src="${request.contextPath}/statics/js/modules/sys/sysreturngoods.js?_${.now?long}"></script>
</body>
</html>